public class Context {
    private Strategy strategy;
    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }
    
    //客户端调用Context中的方法，Context在委派给策略类
    public int executeStrate(int num1, int num2){
       return strategy.doOperation(num1, num2);
    }
}